package cn.com.infohold.smartcity.api.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by apple on 2017/1/23.
 */

public class Version implements Serializable {

    /**
     * 1: 有更新
     * 0/其他:无更新
     */
    @Expose()
    @SerializedName("status")
    private int status;

    /**
     * 更新类型
     * native: 原生(apk)
     * hybrid: 混合(weex/html5...)
     */
    @Expose()
    @SerializedName("type")
    private String type;

    /**
     * 文件名
     */
    @Expose()
    @SerializedName("name")
    private String name;

    @Expose()
    @SerializedName("versionName")
    private String versionName;

    @Expose()
    @SerializedName("versionCode")
    private int versionCode;

    /**
     * 下载地址
     */
    @Expose()
    @SerializedName("url")
    private String url;

    /**
     * 文件md5值
     */
    @Expose()
    @SerializedName("md5")
    private String md5;

    /**
     * 是否为 差分包/增量包
     */
    @Expose()
    @SerializedName("diff")
    private boolean diff;

    /**
     * true :强制安装,停用当前版本
     * false:非强制安装,当前版本可继续使用
     */
    @Expose()
    @SerializedName("force")
    private boolean force;

    /**
     * 更新日志
     */
    @Expose()
    @SerializedName("log")
    private String log;

    /**
     * 其他描述信息
     */
    @Expose()
    @SerializedName("desc")
    private String desc;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public boolean isDiff() {
        return diff;
    }

    public void setDiff(boolean diff) {
        this.diff = diff;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean isForce() {
        return force;
    }

    public void setForce(boolean force) {
        this.force = force;
    }
}
